package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.ConceptoParteDAO;
import com.bit.cfdi.web.domain.ConceptoParte;
@Service
public class ConceptoParteService {

	@Autowired ConceptoParteDAO conceptoParteDAO;

	public void save(ConceptoParte concepto) throws DataAccessException {
		conceptoParteDAO.save(concepto);
	}

	public ConceptoParte getById(Long id) throws DataAccessException {
		return conceptoParteDAO.getById(id);
	}

	public List<ConceptoParte> getAll() throws DataAccessException {
		return conceptoParteDAO.getAll();
	}

}
